package com.yykj.base.server.model.repository;

import com.yykj.base.server.model.entity.Area;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AreaRepository extends JpaRepository<Area,Integer> {
    List<Area> findAllByLevel(Integer level);
    List<Area> findAllByParentCode(String parentCode);

}
